<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>修改密码</title>
	<link rel="stylesheet" type="text/css" href="__CSS__/main.css">
	<script type="text/javascript" src="__JS__/jquery-3.3.1.min.js"></script>
	<script type="text/javascript" src="__JS__/jquery.validate.min.js"></script>
	<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
	
</head>
<script type="text/javascript">
$(document).ready(function(){
	$("#form").validate({
		rules:{
			apa:{
				required:true
			},
			newapa:{
				required:true,
				minlength:6,
				maxlength:16,
			},
			newapagin:{
				required:true,
				equalTo: "#newapa",
				minlength:6,
				maxlength:16,
			},
		},
		messages:{
			apa:{
				required:"<img src='__IMG__/error.png' class='err'><span class='tip'>请输入旧密码</span>"
			},
			newapa:{
				required:"<img src='__IMG__/error.png' class='err'><span>请输入新密码</span>",
				minlength:"<img src='__IMG__/error.png' class='err'><span>新密码最短为6个字符</span>",
				maxlength:"<img src='__IMG__/error.png' class='err'><span>新密码最长为16个字符</span>",
				
			},
			newapagin:{
				required:"<img src='__IMG__/error.png' class='err'><span>请再次输入新密码</span>",
				equalTo:"<img src='__IMG__/error.png' class='err'><span>两次密码需输入一致</span>",
				minlength:"<img src='__IMG__/error.png' class='err'><span>两次密码需输入一致</span>",
				maxlength:"<img src='__IMG__/error.png' class='err'><span>两次密码需输入一致</span>",
			},
		}
	})
})
</script>
<body class="clear">
	<img src="__IMG__/background.jpg" class="background">
	<div class="apa">
	<form action="{:url('aDoPa')}" method="post" id="form">
		<h1 class="aloH">论坛后台管理员修改密码</h1>
		<div class="aloHy"><input type="text" id="anick" name="anick" class="aInput" style="margin-left: 16px;" placeholder="管理员登录名：{:session('aNick')}" readonly></div>
		<div class="aloHy"><input type="text" id="apa" name="apa" class="aInput" style="margin-left: 16px;" placeholder="请输入旧密码"></div>
		<div class="aloHy"><input type="text" id="newapa" name="newapa" class="aInput" style="margin-left: 16px;" placeholder="请输入新密码：6~16个字符"></div>
		<div class="aloHy"><input type="text" id="newapagin" name="newapagin" class="aInput" style="margin-left: 16px;" placeholder="请再次输入新密码：6~16个字符"></div>
		<input type="submit" value="登录" id="submit">
	</div>
	</form>
</body>
</html>
